package com.cxh.mchat.bussiness.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.cxh.mchat.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 对话
 * </p>
 *
 * @author cxh
 * @since 2021-12-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_conversation")
public class Conversation extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 用户账号
     */
    private String userNo;

    /**
     * 类型:单聊、群聊
     */
    private String bussinessType;

    /**
     * 用户、群聊账号
     */
    private String bussinessNo;

    /**
     * 用户、群聊名称
     */
    private String bussinessName;

    /**
     * 新消息数量
     */
    private Integer newMsgCount;

    /**
     * 消息预览
     */
    private String newMsgPreview;
}
